﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pr2
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("请输入动物的类别（狗/鱼）：");
            string str = Console.ReadLine();



            if (str.Equals("狗"))
            {
                Console.WriteLine("请输入狗的名字：");
                Dog dog = new Dog();
                dog.name = Console.ReadLine();


                Console.WriteLine("请输入狗的颜色：");
                dog.color = Console.ReadLine();


                dog.SpeciflcB();
            }



            if (str.Equals("鱼"))
            {
                Console.WriteLine("请输入鱼的名字：");
                Fish fish = new Fish();
                fish.name = Console.ReadLine();


                Console.WriteLine("请输入鱼的颜色：");
                fish.color = Console.ReadLine();


                fish.SpeciflcB();
            }


            Console.WriteLine("结束");

           










            

            
        }
    }
}
